export var commonApi = {
    //获取地图信息
    getMapInfo: function(cb) {
        window.client.request('getMapInfo', null, cb)
    },
    //进入地图
    enterMap: function(data, cb) {
        window.client.request('getMapById', data, cb)
    },
    //获取地图id
    getMapById: function(data, cb) {
        window.client.request('getMapById', data, cb)
    },
    //获取任务列表
    getNpcInfo: function(data, cb) {
        window.client.request('getNpcInfo', data, cb)
    },
    //任务信息
    getTaskInfo: function(data, cb) {
        window.client.request('getTaskInfo', data, cb)
    },
    //接受任务
    receiveTask: function(data, cb) {
        window.client.request('receiveTask', data, cb)
    },
    //完成任务
    completeTask: function(data, cb) {
        window.client.request('completeTask', data, cb)
    },
    //战斗
    battle: function(data, cb) {
        window.client.request('battle', data, cb)
    },
    //采集
    collection: function(data, cb) {
        window.client.request('collection', data, cb)
    }
}
